Remove buildmessage usage by stats code