Getting rid of unused argument in createShare function