Barg on invalid options
Pull gem logic out into it's own module