Helper that gets a command class by common name.