Factorization in spin systems under general fields and separable ground-state engineering