Move old party Lua functions to compat