Move a lot of specialized stuff to server-specific plugin