Remove deprecated 'contains' function