Refactor lua requirements