Remove codes duplication.