1. Move helper methods to a more suitable place, this is just a minor refactoring making the code a bit more readable.