Gauging by symmetries