Refactoring: conisitent way to access option parser