Make PhaseEnum non-nested because, nested enum classes :(
Test case for bug 792263