Remove copy-paste in script