Refactor spec files.