Split source into core and static