Move duplicated code to a library