Refactored the code.
Learned about some really cool refactoring strategies
Extract method, extract class, and code smell.