Six men have appeared in court after the discovery of what police described as a "large cannabis factory" in Bradford.