removing the singleton pattern as it's not necessary

There is no need to implement the class as a singleton pattern as it doesn't have state. It simply exposes a single public method to get the parameter and as such works much better as a static class.