Change following 2 methods to be addCellLink(...) and pass file extension into it so that logic is consolidated into a single method.