Make binning more flexibly specified as a pyramid configuration

Do not assume bins are for time but let user decide about it.