Move parser function code for site link lookup out of static method

Change-Id: I910b3206631ffd8e4d154ce10d930da5333031d6
Merge "Move parser function code for site link lookup out of static method"