Changed core code to separated repo using submodules.