Remove copy-pasted code