Refactor find first to be Rails agnostic