moduel VS parameters



I got one code from another guy which has forty parameters for each
subroutine call. I do not like it, so I make modules and then
everything is passed through modules.

Now I have a problem. The original subroutine, which is very messy, can
work independant of the other parts as long as I feed it with the right
parameter. In my version of code, I have to use the module everytime.
Since some information are somewhat common to many modules, it is hard
to isolate them. In another words, the modules I used in one subroutine
may contains more information than the subroutine needs.

I know maybe this is something about Object Oriented. But are there
anyway in fortran I can do?

rgds.

Yuan

.