Refactoring search implementations of resources, log entries, membership users.