Remove incorrectly placed redundant code.