Move all wp filter path helpers methods into own helper