#64 Refactored removeCommands method() for brevity