Refactor the code out of get_all_properties into its own method. This will be used by the write method in Asset.pm, at least.