Change instance method to class method
Exclude spec files from the coverage