Minor refactoring in ffi-parse.lua