Create instance if only there is a custom repository