Code smells and refactoring based on @jpignata's talk at Mountain West Ruby Conf