I'm not exactly sure what you mean here.

Do you want me to put all the Lua IPC calls into their own functions?