Refactor if statement
Prevent spec pollution in pending features spec