Regarding beak trimming:
The beak of the chicken, as in all birds, is a complex sensory organ with numerous nerve endings. The beak not only serves to grasp and manipulate food items, but is also used to manipulate non-food objects in nesting and exploration, drinking, and preening. It is also used as a weapon in defensive and aggressive encounters. At the end of the beak is a specialized cluster of highly sensitive mechanoreceptors, called the bill tip organ, which allows chickens to make fine tactile discriminations (Gentle and Breward
1986). Needless to say, damage to the beak is intensely painful, as partially debeaked chickens show a significant increase in guarding behavior, i.e., tucking the bill under the wing, and diminished use of the bill for pecking and preening after the procedure. These pain-related behaviors may continue for months (Duncan et al.
1989; Gentle et al.
1990,
1991).
This excerpt is from the following:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5306232/
And I agree that the space you have is too small.