Well, I've developed separate class that handles settings and now it is used heavely. Thanks for hints ...