refactor: separate process repository from storage (#2555)