Hewlett Packard Enterprise plans to spin off and merge its non-core software assets with Micro Focus, sources told CNBC.