LPS-46842 add factories for local and remote repositories
LPS-46842 No logic changes - move logic
LPS-46842 move all repository initialization code into the new factories

RepositoryLocalService is responsible of the management of both com.liferay.portal.mode.Repository
and com.liferay.portal.kernel.repository.(Local)Repository. Move the later responsibility into
the new factories.
LPS-46842 SF