Use `self.method` instead of `extend self`

This is just my opinion, but I find `extend self` surprising because it means I have to go back and re-read all of the methods, now knowing that they're class methods and not instance methods.