We have the emoji deny list admin setting now, so this theme component may not be as necessary as it once was:
emoji deny list
Would using that setting instead suit your usecase?