Extracting Rails integration into separate gem