Use function 'static' instead of constructor 'S'.

When constructing a decoder, use the function instead of
using the constructor directly.