Replaced most of the boilerplate usage of consts with properties inherited from prototypes.