Refactored bulk insert to custom repo