Refactored OMMiniXcode class for the sake of readability.

Up to 10 levels of indentation? With multiple returns? Seriously? This just asks for maintenance trouble.