Remove the compatibility code to start service in foreground.

The minimal sdk requirement is above to the whole of the sdk which need
this compatibility, so it's not longer needed.