Regression: Stop edit cta showing for things that are not editable

In process do some refactoring for readability purposes
sectionId is not the same as the hash (this confused me)
Make reusable extractSectionIdFromEditLink

Change-Id: I4ab40eeb7f1fdcec23f548845a30c4ffeaa1a655