And also you can use a functional options and this code generator: https://github.com/kazhuravlev/options-gen