Osteoporosis is a disease characterized by loss of bone mass and may be aggravated by: