Remove deprecated codes.