Simple steps towards refactoring a legacy codebase