Three men involved with a three-storey cannabis farm in Halifax were caught after neighbours heard breaking glass and alerted the police.