Extract memory usage spec to its own file