Initial repo split

(from f532660fe1dc8cbbbe82af2514e3329eb05f9fd1)