Refactor custom Paperclip processor