move duplicated source code.