Extract slug to app/lib