Rework plugin logic to reduce monstrosity of the file sizes.