Removing multiple calculateIntegral() for different signatures