Stop using deprecated class VirtualFunction

2 jobs for remove-more-deprecated-function-stuff in 6 minutes and 21 seconds (queued for 2 seconds)