See note on moving repeated code to a method