Move core modules to a different file to prevent issues with whitelisting modules