Removing redundant / out of place example of passing data to a view