Refactoring userdata and cloudcreds handlers as properties