Made types and constants more configurable and more central.