I think this is a bit different. I wouldn't put up with it if the behavior was persistent.
An attention peck is fine. They don't have hands and that's one of the things their beak is for. I don't mind a warning peck either. It doesn't happen unless I'm interfering.
It takes quite few months for...
Interesting.
I have two hens that do this. I think of it as being a bit bossy more than anything else.
The hen that obviously does it for food, I sometimes gently push her away by placing my hand under her bum and propelling her forward. She seems to understand this and just grumbles but doesn't...