IMO you can spend days shuffling around the same code if you want. It's not that refactoring is bad it's a priority thing.
Also if you refactor too frequently that's a sign you need to take a step back and more thoroughly plan out your system.
You want good code that's maintainable? You're refactoring (and probably adding tests) as you go.