Put plugin code into a different file, split from profile. Also use a nice class to keep the plugin information in, which improves support for future plugin types.