Macy’s is doing all the right things—except being in a mall, analyst says