EPG-34244 - refactored the code with current epagesj version

is it correct to remove it? I was trying things out here