Refactor lua-exceptions.