It would mainly be hard because of all the peripheral ports on the board taking up space where you don't want it. I bet making a Pyra with the compute version of the Pi:
https://www.raspberrypi.org/products/compute-module-4/?varia... wouldn't be too difficult.