Move beluga class loading into all_defaults to ensure that variables are resolved before anything else happens.