Refactoring: get options
code style