Refactor getAssetsFromLayer method

Refactor getAssetsFromLayer to access data using `feature['name']` lookup rather then index based lookup.
Extract the returning of features into a single method for reuse.