refactor types views to use a common permission class