Re-factored federated search controllers for common API query pattern.