A quick exercise to improve my abilities refactoring a legacy codebase