Reinstate optimisations, plus a bit of abstraction. This entails an API change in the return type of rabbit_policy:get/2.