moved RegisterCommands -> RegisterCommandsHelper