trying to reduce cyclomatic complexity by creating an options class for validating