Delete repeated code