Refactors LegalityRenderer towards configurability