wrap constant initialization in blocks

not sure if this is a good way to do it, code climate wanted them in
methods but that makes no sense, they would have to be defined as
private methods etc.  see if it prefers this.  I like it anyhow.