Code cleanup

Removing an unused helper method.