Avoid code repetition