Reduce boilerplate using singletons library