Convert the blocklist helper to Kotlin. https://redmine.stoutner.com/issues/783