[feature/lua] Less magic strings and copied code