[feature] remove reduplicate address family code