The error messages are saying a lot - which is great! I cannot apply an extension to an independent function, but it makes me think about the general use case for
@extension
... that is something that can be removed for the time being, since I'm not using it at the moment and it's being used incorrectly. But what about