Refactor luadeps