Refactors NeatlinePlugin::filterNeatlineGlobals.