block page: code refactoring. Refs #2866