Move factories to namespace

It's very confusing to have factories in the same folder as services (RbacService is then lost among all the factories).

This PR just moved all factories to a specific namespace. All tests have been updated.