cleaning up extension file

Signed-off-by: Ninjaparade <yazjallad@gmail.com>
refactored getSlugAttribute

Signed-off-by: Ninjaparade <yazjallad@gmail.com>