MNT: Refactor constants (comments welcome)

closes #209 
Are we going to use this way to parse data for all the other similar cases, such as constants from XRF or XPD?