Split module source out

Split module sources for build tool