Refactored request controller logic to traits.