Refactored code into methods in garage class