Some refactorings for shortening methods.