Add global_config class to Restraint class