Refactorying some code to make it look somewhat like an entity system.