I extracted it in PoliciesYAMLTest, but in this test class, as well as the app being used, the assembly template is used to get the assembly, which is used to get the entity ids, so it would be difficult to extract it into a simple method