Addressed missing guard clause.
Removed dependency registrations not relating to controllers

but instead, specified those dependencies directly in WebApiConfig.