Make getCommandId() more readable.