Split up single file into Spark Library structure