Text this: Resource allocation theory applied to farm animal production