Module refactoring to make aspects available during compile time of the monitoring API consuming modules