Refactoring to remove redundant code.
Refactoring to remove redundant code.

filipefigcorreia/TracAdaptiveSoftwareArtifacts,filipefigcorreia/TracAdaptiveSoftwareArtifacts,filipefigcorreia/TracAdaptiveSoftwareArtifacts