github: Move core types into new directory