The core logic of this method should be moved to a method of the SeoManager class up to line 46 (at least at first look)