I wonder if this bit can be extracted to a `extension_prefix` method or something like that.