core salt: split up to-salt converter into smaller modules