Refactoring within marpalua.c.lua