Refactor detect_framework
Refactor detect_framework

I keep finding the multi-line condition hard to read. I'm not sure if
this makes it better but I find it easier to read.

alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api