Apartments, retail will take over Duke Energy's former headquarters