Split out all the def-related madness.