move createWikiAttachmentUrl to utility class