Refactor spec_helper