We should cast out legalism because it is contrary to the Gospel of Grace, similar to how Abraham and Sarah sent Hagar and Ishmael away.
Watch the Teaching: Why Grace and Law Cannot Mix — Galatians 4 Allegory