Drop duplicated code.