Move constants into companion objects.