[WIP] Factor choose group avatar button

7 lines of code copied 3 times.

Guys, let's avoid this kind of stuff :worried: