Extract common usage of view