Remove repetetive code when adding emoji to recents.
Refacor code : better function names. Add documentation.