Refactor spec.