Refactored context path removal to static getRelativeRequestURI() method (#731)