its just bunch of LUA scripts and in 95% of cases addons can work with almost all expansion and if its LK to legion its almost all of them and if you dont want this to be intented as addon then pick up code and implement it to patch
Spell.DBCs structure have nothing to do wtih this at all
How are you going to access SpellFlyout.dbc?