refactor premium-detection a little to make it more re-usable