Stubbing of authorisations DRYed up.