Common Repository for all Factory IDs

This PR covers enhancement https://github.com/hazelcast/hazelcast/issues/2073