Factor out checks for scala 2.11 only dependencies