Remove duplicate code by extend Resource pages

Fix bug from #12186 by extending all types of resource pages from resource pages. Also removed access_permissions field since it is always undefined.