Refine getting instance by selector functionality