Work-in-progress modularization of LuaAV's core