Improve StaticPages removing some redundancies (DRY)