If you put a function here like this it's totally out of context. Although it might not be very clean I believe it is better to put it inside the Table model, so that the context is automatically obvious.