Replace old use of superclass as a member with use as a function.