Refactor code to remove code duplicated related to get real context. Also, the language is removed if exists and the context is a Web Section or Web Site