Refactor subviews to be a function, not a list.