msi: Factor out the code to open the UserData features key.