Make generated and derived command functions virtual.