The module ID is always the same for a given command ID, so it can be easily mapped with a switch function.