An idea from Groundwork of the Metaphysics of Morals
Most commands are if-then. If you want to heal, study medicine; if you want to poison, study poisons. Drop the goal and the command goes away. A moral command holds whatever you want, and that kind is called categorical.