Refactored hiera_hash in network class