Converting an expression to a specific form with Symbolics.jl

I would like to convert an expression to a specific mathematical form. Is this possible to do with Symbolics.jl (or any other package for that matter)? Specifically I would like to convert an arbitrary transfer function G(s) to a polynomial form: G(s) = Y(s)/X(s) where Y(s) and X(s) are polynomials. I would essentially get the coefficients for these polynomials.

You can use ControlSystems.jl to define a transfer function (see the docs here) and DSP.jl to get its various representations. Since there is an appropriate extension between these packages (see here), conversion is quite simple.