Refactor revision spec