Give pageActions results a proper type

Remove redundant code in the process