Remove part of redundant code.