Trivial slab code changes: - deleting unused parameters and flags - using helper macros and functions - making structures static