Removes the addAsType method from Entity, and refactors the Painter and UIView implementations so that extending them as base classes is unnecessary.