Refactors and cleans up getLatestPropeties.