You might want to drop this switch and keep the _EKF case.  The nav changes I should be pushing shortly move this functionality into the attitude module so it's not necessary (unless you are actively using it currently).