Not in any way I can see.  The previous section is either one or the other.  The below section is included in either case.  Below I could merge them by just having the if (blah) on one line without the bracket, but here the mpu9150_found is required.

If you can see a way to merge them though please type it in cause I don't like it either.