Remove redundant code fragment