Remove deprecated call to patterns