Moved library code into separate repos