Moved some config stuff from constants to config.