[NF] Utility function for instantiating repository classes
[HK] Documentation improvements