Move code to plugin-hosted project