VOMS AC generation code refactoring & generalization.