postEnhancementModuleDec is god awful mess of ugly logic. It works, but oh is it ugly.