Refactored gem into a Rails Engine.