Hard to say for sure without seeing the code for shape_hill, but This is most likely due to something like this: Frequently Asked Questions · Symbolics.jl
It may also be a simple conditional, if you can replace if-else control flow with IfElse.ifelse, you can sometimes fix this.