Move avatar def to a separate functions.mak file.