Refactored for easier diffs and moved implementation of device model retrieval in runtimes.