Move plugin code from buildSrc to main source set