Move set_constants to its own function, so that I can change those without restarting the service.