Refactoring: Introduce helper function for looping over object properties
Refactoring: Moved logic to CharcterClass (where it belongs)