Remove duplicate code by extend Resource pages