[FEATURE] moving category retrieval into category repository